package com.zwps.biz.domain.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zwps.biz.api.model.dto.mointordentify.PictureMessageDTO;
import com.zwps.biz.dal.db.dao.PictureRsvrDAO;
import com.zwps.biz.dal.db.object.PictureRsvrDO;
import com.zwps.biz.domain.converter.PictureConverter;
import com.zwps.biz.domain.service.PictureRsvrService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 */
@Service
public class PictureRsvrServiceImpl extends ServiceImpl<PictureRsvrDAO, PictureRsvrDO>
    implements PictureRsvrService{
    @Autowired
    private PictureRsvrDAO pictureRsvrDAO;
    @Override
    public void addPictureRsvr(PictureMessageDTO pictureMessageDTO) {
        PictureRsvrDO pictureRsvrDO = PictureConverter.INSTANCE.toPictureRsvrDO(pictureMessageDTO);
            pictureRsvrDO.setDatetime(pictureMessageDTO.getDatatime());
            pictureRsvrDO.setWaterRes(pictureMessageDTO.getWater_res());
        pictureRsvrDAO.insert(pictureRsvrDO);
    }
}




